#coding:utf-8
import re
command = "AAA,command,/usr/bin/topas_nmon -fTN -s 1 -c 120 -youtput_dir=//ametest -ystart_time=17:28:36,Jan01,2013"


if '-c' in command:
    print(command.split(' ').index('-c'))
    count = command.split(' ').index('-c')
    print(command.split(' ')[count + 1])

